package com.shigen.demo.atguigu;

/**
 * 强引用
 *
 * @author shigenfu
 * @date 2022/5/26 12:26 下午
 */
public class StrongReference {

  public static void main(String[] args) {
    Object o = new Object();
    Object o1 = o;
    System.out.println(o + " " + o1);
    o = null;
    System.gc();
    System.out.println(o + " " + o1);

  }

}
